//
//  CXCycleCollectionCell.m
//  HuoGameBox
//
//  Created by 曹想 on 2018/12/28.
//  Copyright © 2018 huosdk. All rights reserved.
//
#define random(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]



#define randomColor random(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))

#import "CXCycleCollectionCell.h"

@interface CXCycleCollectionCell ()

@property (nonatomic,strong) UIView * test;

@end

@implementation CXCycleCollectionCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.test = [[UIView alloc]initWithFrame:self.bounds];
        self.test.backgroundColor = randomColor;
        [self.contentView addSubview:self.test];
    }
    return self;
}



@end
